package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.commodity.models.dto.CommoditySalesAttributesRelationDTO;
import com.ztgf.commodity.models.vo.CommoditySalesAttributesRelationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommoditySalesAttributesRelationMapper extends BaseMapper<CommoditySalesAttributesRelationDTO> {

    /**
     * @Description: 根据商品id查询已选择的销售属性
     * @Author: chenyu.wang
     * @Params: [goodsId]
     * @Date: 2020.11.16 15:06
     */
    List<CommoditySalesAttributesRelationVO> queryGoodsSalesAttributes(@Param(value = "goodsId") Long goodsId);
}
